﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Reject.ascx.cs" Inherits="Workflow.Alerts.Sublayouts.Reject" %>
<div id="reject" runat="server" class="additionPopup additionRejectPopup">
	<asp:Label runat="server" ID="label5" AssociatedControlID="txtComments" Text="Reden van afkeuring:"
	CssClass="longLabel labelTextarea labelReject"></asp:Label><br />
	<asp:TextBox ID="txtComments" runat="server" TextMode="MultiLine"></asp:TextBox>
	
	<div class="errorContainer floatLeft">
		<asp:RequiredFieldValidator Display="Dynamic" ID="rfvComments" runat="server" CssClass="additionPopupError" ErrorMessage="Dit is een verplicht veld"
		ControlToValidate="txtComments" />
	</div>	
	<div id="buttons" runat="server" class="buttonContainer">
		<input id="Cancel" type="button" value="Annuleren" class="styledButton styledButton75" />
		<asp:Button ID="btnSave" runat="server" Text="Opslaan" cssClass="styledButton styledButton75" OnClick="btnSave_Click" />
	</div>	
</div>

<asp:PlaceHolder ID="phClose" runat="server" Visible="false">
    <script type="text/javascript">
        parent.workflow.openFrame.Close(true)
    </script>
</asp:PlaceHolder>

<script type="text/javascript">
    jQuery('#Cancel').click(function() {
        parent.workflow.openFrame.Close(true)
    })
</script>